package homework_02.while_demo;

public class Demo_01 {
    public static void main(String[] args) {
        int n=100;
        while(n<1000){
            int b=n/100;
            int s=n%100/10;
            int g=n%10;
            int m=b*b*b*b+s*s*s+g*g*g;
            if(m==n){
                System.out.println(n);
            }
            n++;
                    }
                    }
                    }
